package net.hn.hnms.biz.api.safety.location.model;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * 智呈物联 pan'sx
 * 2022/12/22 10:52
 * 1.0 version
 */
@Data
@ApiModel("公司端人员定位报警信息")
public class CompanyAlarmVo {
    @ApiModelProperty("求救次数")
    private int help;

    @ApiModelProperty("超员次数")
    private int overStaff;

    @ApiModelProperty("超时次数")
    private int overTime;

    @ApiModelProperty("限制区域")
    private int restrictedArea;

    private List<Info> infos=new ArrayList<>();

    @Data
    public class Info{
        private String mineName;
        private String alarmType;
        private String cause;
        private String staffName;
        @JsonFormat(
                pattern = "yyyy-MM-dd HH:mm:ss",
                timezone = "Asia/Shanghai"
        )
        private Date beginTime;
    }
}
